package clientMain;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;

import javax.swing.JFrame;

import ungDung.ClosableTabbedPane;
import ungDung.View_Truong;
import ungDung.UtilityGUI;

public class Main extends JFrame {

	public static ClosableTabbedPane jTabbedPane;
	public static Rectangle maxBounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					//thay doi thems
					UtilityGUI.themes();
					Main frame = new Main();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Main() {
		jTabbedPane = new ClosableTabbedPane();
		jTabbedPane.addTab(new  View_Truong(),"Thong Tin");
		
		setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(0, 0, maxBounds.width,maxBounds.height);
		getContentPane().setLayout(new BorderLayout());
		
		getContentPane().add(UtilityGUI.Header(),BorderLayout.NORTH);
		getContentPane().add(jTabbedPane,BorderLayout.CENTER);
		getContentPane().add(UtilityGUI.footer(),BorderLayout.SOUTH);
	}

}
